package ru.ifmo.ct.network.brafs.server;

import java.net.InetAddress;

public class ClientId {
    InetAddress inetAddress;
    int port;

    public ClientId(InetAddress inetAddress, int port) {
        this.inetAddress = inetAddress;
        this.port = port;
    }
    public  byte[] getIp() {
        return inetAddress.getAddress();
    }

    @Override
    public String toString() {
        return "ClientId{" +
                "inetAddress=" + inetAddress +
                ", port=" + port +
                '}';
    }
}
